#ifndef _THREAD_H
#define _THREAD_H
#include "Nocopyable.hpp"
#include <pthread.h>


class Thread:public Nocopyable
{
public:
    Thread():_status(false) {}
    ~Thread() {}

    void join();
    void start();
    bool isRunning();
private:
    virtual void run()=0;
    static void * start_routine(void *);

private:
    pthread_t _pid;
    bool _status;
};


#endif

